<ul class="nav nav-tabs" id="myTab">
    <li class="active"><a href="#profile">Profile</a></li>
    <li><a href="#radchecks">radchecks</a></li>
    <li><a href="#radreply">radreply</a></li>
    <li><a href="#groups">groups</a></li>
</ul>

<div class="tab-content">
    <div class="tab-pane active" id="profile">
        <p id="notice"><%= notice %></p>

        <p>
        <strong>Username:</strong>
        <%= @user.username %>
        </p>

        <p>
        <strong>Password:</strong>
        <%= @user.password %>
        </p>

        <p>
        <strong>Email:</strong>
        <%= @user.email %>
        </p>

        <%= link_to 'Edit', edit_user_path(@user) %> |
        <%= link_to 'Back', users_path %>

    </div>
    <div class="tab-pane" id="radchecks">
        <% @user.radchecks.each do |r| %>
            <%= r.attr %>  <%= r.op %> <%= r.value %>
        <% end %>
    </div>
    <div class="tab-pane" id="radreply">
        <% @user.radreplies.each do |r| %>
            <%= r.attr %>  <%= r.op %> <%= r.value %>
        <% end %>
    </div>
    <div class="tab-pane" id="groups">
     <% @user.groups.each do |g|  %>
         <%= g.name %>
     <% end %>
    </div>
</div>

